﻿using UnityEngine;
using System.Collections;
using Game.Scripts.Managers;

public class ResourceCollectedController : MonoBehaviour {

    public Building building;

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {
	
	}

    public string Warehouse
    {
        get
        {
            if( building != null)
            {
                return building.WarehouseResource.ToString();
            }
            return "";
        }
    }

    public string IconName
    {
        get
        {
            if (building != null)
            {
                return ResourceManager.instance.mappingIconResource[building.prototype.resourceProduced.type];
            }
            return "Question-mark-icon";
        }
    }

}
